package com.xxxx.blog.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.xxxx.blog.utils.Entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_user")
public class User extends Entity implements Serializable {
    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String userName;

    private String password;

    private String nickName;

    private String avatar;

    private String email;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createDate;

    private String status;
}
